<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class ArticleFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            //
            'title'=>$this->faker->title,
            'desn'=>$this->faker->text(100),
            'author'=>$this->faker->name,
            'pid'=>'/uploads/'.rand(1,8).'.jpg',
            'body'=>$this->faker->text,
        ];
    }
}
